package com.bootdo.xzl.dao;

import com.bootdo.xzl.domain.HousesImgInfoDO;
import com.bootdo.xzl.domain.HousesInfoDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 房源图片信息表
 * @author chenhuan
 * @email huan.chen@i-soft.com.cn
 * @date 2019-11-19 10:56:47
 */
@Mapper
public interface HousesImgInfoDao {

	HousesImgInfoDO get(Integer id);
	
	List<HousesImgInfoDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(@Param(value = "list") List<HousesImgInfoDO> list);
	
	int update(HousesImgInfoDO housesImgInfo);
	
	int batchUpdate(@Param(value = "list") List<HousesImgInfoDO> list);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);
	
	List<HousesImgInfoDO> getImgList(HousesInfoDO housesInfoDO);
	
	List<HousesImgInfoDO> getImgListByIds(Integer[] array);
	
	List<HousesImgInfoDO> getImgListByofficeId(@Param(value = "array") Integer[] array, @Param(value = "imgFlg") String imgFlg);
}
